Lesson 0004 · ~10 min

Positional information makes order matter

Core idea: Attention alone does not know token order, so transformers add positional information.

What to remember

Why it matters

Language depends on order. Positional information lets attention know where tokens are relative to each other.

Mental model

Token embedding + positional information = position-aware representation fed into the first layer.

Checkpoint

  1. Why can’t a transformer ignore order?
  2. What does positional information add?